/**
 * Created by alan on 2017/4/27.
 * 水质信息
 */
Ext.define("Admin.store.baseInfo.DdsDrWq", {
  extend: "Ext.data.Store",

  alias: "store.ddsDrWq",

  model: "Admin.model.baseInfo.DdsDrWq",
  method:'POST',
  autoLoad:true,
  proxy: {
    type: "ajax",
    url: config.URL+"szy/info/ddsDrWq/listbystcd",
    extraParams: {
      river:config.RIVER,
      stcd: function() {
        var data = [];
        for(var i=0; i<wqstList.length; i++){
          if(wqstList[i].river == config.RIVER){
            data.push(wqstList[i])
          }
        }
        return  data[0] ?  data[0].stcd : ""
      }(),
      // startTm: config.defaultStartDate, endTm: config.defaultEndDate
    },
    reader: {
      type: 'json',
      rootProperty: 'list',
      totalProperty: 'count'
    }
  }
  })
